package com.blb.java11student.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.blb.java11student.entity.Student;
import com.blb.java11student.mapper.StudentMapper;
import com.blb.java11student.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class StudentServiceImpl extends ServiceImpl<StudentMapper, Student> implements StudentService {

    @Autowired
    private StudentMapper studentMapper;

    @Override
    public Page<Student> getStudentPage(Long current, Long size) {
        return studentMapper.selectStudentPage(new Page<>(current,size));
    }
}
